import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

df = pd.read_csv('tips.csv')
print(df[:5])

# NO jitter 抖动 True/False/0.3/0.8/...
# hue 在哪个列上继续细分
# dodge 细分时，分裂
# palette 调色板
sns.swarmplot(x='time', y='total_bill', data=df,
              # jitter=True,  # NO jitter
              hue='smoker',
              dodge=True,
              palette='Set2')
plt.show()